/**
 * jims
 */
package com.jims.master.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

/**
 * 医生公众号配置信息Entity
 * @author WangYongQiang
 * @version 2018-05-30
 */
public class WxPublicNo extends DataEntity<WxPublicNo> {
	
	private static final long serialVersionUID = 1L;
	private String appId;		// 微信公众号的appid
	private String appSecret;		// 微信公众号的appsecret
	private String accessToken;		// 微信公众号的access_token
	private String expiresIn;		// 过期时间期限
	private String lastTime;		// 过期时间
	
	public WxPublicNo() {
		super();
	}

	public WxPublicNo(String id){
		super(id);
	}

	@Length(min=0, max=64, message="微信公众号的appid长度必须介于 0 和 64 之间")
	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}
	
	@Length(min=0, max=64, message="微信公众号的appsecret长度必须介于 0 和 64 之间")
	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	
	@Length(min=0, max=100, message="微信公众号的access_token长度必须介于 0 和 100 之间")
	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	
	@Length(min=0, max=64, message="过期时间期限长度必须介于 0 和 64 之间")
	public String getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(String expiresIn) {
		this.expiresIn = expiresIn;
	}
	
	@Length(min=0, max=64, message="过期时间长度必须介于 0 和 64 之间")
	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}
	
}